﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ChongJu.ModelManager.Calibration
{
    public class CalibrationCfgModel
    {
        /// <summary>
        /// 标准的R值
        /// </summary>
        public double StandR { get; set; } = 80;
        /// <summary>
        /// dll使用的字段
        /// </summary>
        public double TargetR { get; set; } = 80;
        /// <summary>
        /// 调节R值的系数
        /// </summary>
        public double RateR { get; set; } = 9;



        /// <summary>
        /// 标准的G值
        /// </summary>
        public double StandG { get; set; } = 80;
        /// <summary>
        /// dll使用的字段
        /// </summary>
        public double TargetG { get; set; } = 80;
        /// <summary>
        /// 调节G值的系数
        /// </summary>
        public double RateG { get; set; } = 4;



        /// <summary>
        /// 标准的B值
        /// </summary>
        public double StandB { get; set; } = 80;
        /// <summary>
        /// dll使用的字段
        /// </summary>
        public double TargetB { get; set; } = 80;
        /// <summary>
        /// 调节B值的系数
        /// </summary>
        public double RateB { get; set; } = 9;


        /// <summary>
        /// 读取图片RGB区域  起点坐标的X坐标
        /// </summary>
        public int X { get; set; } = 392;

        /// <summary>
        /// 读取图片RGB区域 起点坐标的Y坐标
        /// </summary>
        public int Y { get; set; } = 280;

        /// <summary>
        /// 读取图片RGB区域 的宽度
        /// </summary>
        public int Width { get; set; } = 1600;

        /// <summary>
        /// 读取图片RGB区域 的高度
        /// </summary>
        public int Height { get; set; } = 1000;

        /// <summary>
        /// 去除最大最小百分比
        /// </summary>
        public int RemoveRate { get; set; } = 20;


        /// <summary>
        /// 粗略校准图片数
        /// </summary>
        public int Rough_ImageCount { get; set; } = 20;

        /// <summary>
        /// 粗略校准允许的偏差
        /// </summary>
        public double Rough_AllowRange { get; set; } = 0.1;


        /// <summary>
        /// 精细图片数
        /// </summary>
        public int Minutely_ImageCount { get; set; } = 30;

        /// <summary>
        /// 精细校准允许的偏差
        /// </summary>
        public double Minutely_AllowRange { get; set; } = 0.1;

        /// <summary>
        /// 拍照延时 ms
        /// </summary>
        public int PictureInterval { get; set; } = 200;
    }
}
